<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>我的美阅</title>
    <link rel="stylesheet" type="text/css" href="../css/amazeui.min.css" />
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
     <link rel="stylesheet" type="text/css" href="../css/tngou.css" />
    
</head>
<body>
<!-- 头部 -->	
	  <header data-am-widget="header" id="header"
          class="am-header am-header-default am-header-fixed">
      <h1 class="am-header-title">我的美阅</h1>
     </header>

 
          
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery.min.js"></script>
<script type="text/javascript" src="../script/amazeui.min.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript">
apiready = function(){
		api.getPrefs({
		    key: 'user'
		 }, function(ret, err){
		    var v = ret.value;
		    if(v)
		    {
		    	showUser('./user_home.html');
		    }else
		    {
		        showUser('./user_login.html');    
		    }
		    
		   
		});
	};
	
function showUser(url)
	{	
	    api.openFrame({
	            name: 'user',
	            showProgress:true,
	            url: url,
	            bounces: false,	        
	            rect: {
	                x: 0,
	                y: 58,
                    w: 'auto',
                    h: api.winHeight-108
	            }
	        }); 	

	}	
	
</script>
</html>